package com.spc.travel.agency.mvp.ui.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

import com.anno.spc.FragmentInject;
import com.travel.lib.base.BaseMvpFragment;
import com.spc.travel.agency.mvp.iview.IndexFgView;
import com.spc.travel.agency.mvp.presenter.IndexFgPresenter;

/**
 * Created by spc on 2017/8/11.
 */

@FragmentInject
public class IndexFragment extends BaseMvpFragment<IndexFgPresenter> implements IndexFgView {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mvpPresenter.getDAta();
        return super.onCreateView(inflater, container, savedInstanceState);
    }

    @Override
    public void getDataSuccess() {
        Toast.makeText(getActivity(), "1111111111111", Toast.LENGTH_SHORT).show();
    }
}
